/**
 * 通信消息基本类型
 */
export interface ServerRes {
  key: string;
  data: any;
}

export class S2CCommond {
  /**
   * 基本下行响应
   */
  public static S2C_BASE_COMMAND: string = 'S2C_BASE_COMMAND';
  /**
   * 报错信息
   */
  public static S2C_Cant_Use_Card: string = 'S2C_Cant_Use_Card'; //进入战斗

  /**
   * 页面逻辑
   */

  //回合开始
  public static S2C_Battle_Start: string = 'S2C_Battle_Start';

  //从抽牌堆摸牌
  public static S2C_Deal_Cards_From_Getheap: string = 'S2C_Deal_Cards_From_Getheap';

  //从弃牌堆重新整合到摸牌堆
  public static S2C_DisHeap_To_Getheap: string = 'S2C_DisHeap_To_Getheap';

  //回合开始
  public static S2C_Round_Start: string = 'S2C_Round_Start';

  //英雄改变位置
  public static S2C_Hero_Change_Pos: string = 'S2C_Hero_Change_Pos';

  //护盾刷新
  public static S2C_Fresh_Shied: string = 'S2C_Fresh_Shied';

  //弃牌(单张)
  public static S2C_DisAllCard: string = 'S2C_DisAllCard';

  //花费真气值
  public static S2C_Spend_Hero_Power: string = 'S2C_Spend_Hero_Power';

  //使用单张卡牌 to弃牌堆
  public static S2C_Use_Single_Card: string = 'S2C_Use_Single_Card';

  //使用单张卡牌 燃烧卡牌
  public static S2C_Burn_Single_Card: string = 'S2C_Burn_Single_Card';

  //使用卡牌 展示技能
  public static S2C_Hero_Release_Skill: string = 'S2C_Hero_Release_Skill';

  //恢复真气
  public static S2C_Hero_Resume_Power: string = 'S2C_Hero_Resume_Power';

  //基本影响下行
  public static S2C_Result_Down: string = 'S2C_Result_Down';

  //增加临时状态卡 到xx的xx堆里
  public static S2C_Add_TempCard_Heap: string = 'S2C_Add_TempCard_Heap';

  //增加临时状态卡 到手牌
  public static S2C_Add_To_Hand: string = 'S2C_Add_To_Hand';

  //buff添加
  public static S2C_Add_Buff: string = 'S2C_Add_Buff';

  //buff添加
  public static S2C_Fresh_Buff: string = 'S2C_Fresh_Buff';

  //buff激活
  public static S2C_Buff_Active: string = 'S2C_Buff_Active';

  //buff激活
  public static S2C_Buff_Mention: string = 'S2C_Buff_Mention';

  //增加真气值
  public static S2C_Add_Power: string = 'S2C_Add_Power';

  //改变卡牌消耗真气值
  public static S2C_Change_Card_Power: string = 'S2C_Change_Card_Power';

  //死亡事件
  public static S2C_Hero_Death: string = 'S2C_Hero_Death';

  //回合结束
  public static S2C_Round_Over: string = 'S2C_Round_Over';

  //卡牌更新
  public static S2C_Cards_Update: string = 'S2C_Cards_Update';

  //战斗中 物品更新
  public static S2C_Battle_Item_Update: string = 'S2C_Battle_Item_Update';

  //游戏结束
  public static S2C_Game_Over: string = 'S2C_Game_Over';
}

export class C2SCommond {
  /**
   * 战斗准备好了
   */
  public static C2S_Enter_Battle: string = 'C2S_Enter_Battle'; //进入战斗

  /**
   * 页面逻辑
   */
}
